var async = require("async");
var couponService = require('../service/CouponService');


exports.couponInfo = function (req,res,next) {
    async.series({
        coupon:function (callbk) {
            couponService.getCoupon(req.session.openid,callbk);
        }
    },function (err,result) {
        res.render("coupon",{title:"我的优惠券",coupon:result.coupon})
    });
}